import {
	axios
} from "./axios.js";

// 获取所有排名信息
export const getAllRankInfo = () => {
	return axios({
		url: '/card-history/getAllRankInfo',
		method: 'get',
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}

// 打卡发布
export const takeCardRelease = (data) => {
	return axios({
		url: '/card-history/takeCardRelease',
		method: 'post',
		data: data,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}

// 获取用户的打卡记录全部信息
export const getCardHistoryAllInfo = (param) => {
	return axios({
		url: '/card-history/getCardHistoryAllInfo',
		method: 'get',
		params: param,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}